package com.ddlaw.serviceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.entity.TLawKnowledge;
import com.ddlaw.entity.TLawKnowledgeDetail;
import com.ddlaw.entity.TLawKnowledgeType;
import com.ddlaw.mapper.TLawKnowledgeMapper;
import com.ddlaw.service.LawKnowledgeService;
@Service
@Transactional
public class LawKnowledgeServiceImpl implements LawKnowledgeService{

	@Resource
	TLawKnowledgeMapper knowledgeMapper;
	@Override
	public List<TLawKnowledge> getKnowledge(Map params) {
		// TODO Auto-generated method stub
		return knowledgeMapper.getKnowledge(params);
	}

	@Override
	public List<TLawKnowledgeType> getMinKnowledge(Map params) {
		// TODO Auto-generated method stub
		return knowledgeMapper.getMinKnowledge(params);
	}
	
	@Override
	public List<TLawKnowledgeDetail> getDetailById(Map params) {
		// TODO Auto-generated method stub
		return knowledgeMapper.getDetailById(params);
	}

	@Override
	public int addReadNum(int contractId) {
		// TODO Auto-generated method stub
		return knowledgeMapper.addReadNum(contractId);
	}
}
